package net.NingXiaRuiTai.ShortChain;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication//用于标识一个主程序类，说明这是一个Spring Boot应用
@MapperScan("net.NingXiaRuiTai.ShortChain.mapper")// 扫描mapper
@EnableTransactionManagement// 开启事务管理
@EnableFeignClients// 开启feign用于远程调用
@EnableDiscoveryClient// 开启服务发现为了注册服务
@EnableAsync// 开启异步

public class AccountApplication {
    public static void main(String[] args) {
        SpringApplication.run(AccountApplication.class, args);
    }
}
